package almacenes.modelo.entidad;
// Generated 16/02/2012 04:45:02 PM by Hibernate Tools 3.4.0.CR1


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * TipoStockXMotivoMov generated by hbm2java
 */
@Entity
@Table(name="TIPO_STOCK_X_MOTIVO_MOV"
    , uniqueConstraints = {@UniqueConstraint(columnNames="ID_TIPO_STOCK"), @UniqueConstraint(columnNames="ID_MOTIVO_MOV")} 
)
public class TipoStockXMotivoMov  implements java.io.Serializable {


     private int idMotmovTipstock;
     private MotivoMovimiento motivoMovimiento;
     private TipoStock tipoStock;
     private String usuReg;
     private Date fecReg;
     private Byte idEstadoMae;
     private String usuAct;
     private Date fecAct;

    public TipoStockXMotivoMov() {
    }

	
    public TipoStockXMotivoMov(int idMotmovTipstock, MotivoMovimiento motivoMovimiento, TipoStock tipoStock) {
        this.idMotmovTipstock = idMotmovTipstock;
        this.motivoMovimiento = motivoMovimiento;
        this.tipoStock = tipoStock;
    }
    public TipoStockXMotivoMov(int idMotmovTipstock, MotivoMovimiento motivoMovimiento, TipoStock tipoStock, String usuReg, Date fecReg, Byte idEstadoMae, String usuAct, Date fecAct) {
       this.idMotmovTipstock = idMotmovTipstock;
       this.motivoMovimiento = motivoMovimiento;
       this.tipoStock = tipoStock;
       this.usuReg = usuReg;
       this.fecReg = fecReg;
       this.idEstadoMae = idEstadoMae;
       this.usuAct = usuAct;
       this.fecAct = fecAct;
    }
   
     @Id 

    
    @Column(name="ID_MOTMOV_TIPSTOCK", unique=true, nullable=false, precision=5, scale=0)
    public int getIdMotmovTipstock() {
        return this.idMotmovTipstock;
    }
    
    public void setIdMotmovTipstock(int idMotmovTipstock) {
        this.idMotmovTipstock = idMotmovTipstock;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ID_MOTIVO_MOV", unique=true, nullable=false)
    public MotivoMovimiento getMotivoMovimiento() {
        return this.motivoMovimiento;
    }
    
    public void setMotivoMovimiento(MotivoMovimiento motivoMovimiento) {
        this.motivoMovimiento = motivoMovimiento;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ID_TIPO_STOCK", unique=true, nullable=false)
    public TipoStock getTipoStock() {
        return this.tipoStock;
    }
    
    public void setTipoStock(TipoStock tipoStock) {
        this.tipoStock = tipoStock;
    }

    
    @Column(name="USU_REG", length=10)
    public String getUsuReg() {
        return this.usuReg;
    }
    
    public void setUsuReg(String usuReg) {
        this.usuReg = usuReg;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="FEC_REG", length=7)
    public Date getFecReg() {
        return this.fecReg;
    }
    
    public void setFecReg(Date fecReg) {
        this.fecReg = fecReg;
    }

    
    @Column(name="ID_ESTADO_MAE", precision=2, scale=0)
    public Byte getIdEstadoMae() {
        return this.idEstadoMae;
    }
    
    public void setIdEstadoMae(Byte idEstadoMae) {
        this.idEstadoMae = idEstadoMae;
    }

    
    @Column(name="USU_ACT", length=10)
    public String getUsuAct() {
        return this.usuAct;
    }
    
    public void setUsuAct(String usuAct) {
        this.usuAct = usuAct;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="FEC_ACT", length=7)
    public Date getFecAct() {
        return this.fecAct;
    }
    
    public void setFecAct(Date fecAct) {
        this.fecAct = fecAct;
    }




}


